package com.hiof.moraa.server.service;

import com.hiof.moraa.server.dao.SpotDAO;
import com.hiof.moraa.server.service.model.MeetingPointInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bergy
 * Date: 7/7/12
 * Time: 9:18 AM
 * To change this template use File | Settings | File Templates.
 */

@Transactional(readOnly = false)
public class MeetingPointServiceImpl implements MeetingPointService {
    private SpotDAO dao;

    public void setDao(SpotDAO dao) {
        this.dao = dao;
    }

    @Override
    public MeetingPointInfo insertMeetingPoint(int teamId, double lat, double lng, double alt) {
        return dao.insertMeetingPoint(teamId, lat, lng, alt);
    }

    @Override
    public List<MeetingPointInfo> getListOfMeetingPoint(int teamId) {
        return dao.getListOfMeetingPoint(teamId);
    }

    @Override
    public void deleteMeetingPoint(int meetingPointId) {
         dao.deleteMeetingPoint(meetingPointId);
    }
}
